package com.cjw.mapper.livesquare;

import com.cjw.pojo.query.livesquare.QueryLiveUserDTO;
import com.cjw.pojo.entity.livesquare.LiveUser;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.Date;
import java.util.List;

/**
 * @create_time: 2021.11.15
 * @author : cjw
 * @descipe: 生活分享用户mapper
 */
@Repository
public interface LiveUserMapper extends Mapper<LiveUser> {
    Long getMaxIdByUserId(Long userId);

    List<LiveUser> getAllSelf(QueryLiveUserDTO dto);

    Integer getCountByDate(@Param("date")Date date, @Param("type") Integer type);
}
